﻿using System.Collections.Generic;
using AbstractBugTracker;
using SmartAssembly;
using Utilities;

namespace Engine.Buggets
{
    internal sealed class IncrementReportCount<TBug> : IBugget<TBug>
        where TBug : class, IBug
    {
        public IEnumerable<Tuple<ProcessedReport, TBug>> Run(ProcessedReport processedReport, TBug bug)
        {
            bug.ReportCount++;
            yield return new Tuple<ProcessedReport, TBug>(processedReport, bug);
        }
    }
}